<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>modify</title>
<link href="../Public/css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function verify() {
		if (document.infoedit.oldpwd.value == '') {
			alert("原密码不能为空!");
			document.infoedit.oldpwd.focus();
			return false;
		}
		if (document.infoedit.newpwd.value == '') {
			alert("请输入新密码!");
			document.infoedit.newpwd.focus();
			return false;
		}
		if (document.infoedit.newpwd2.value == '') {
			alert("请再次输入新密码!");
			document.infoedit.newpwd2.focus();
			return false;
		}
		var LPassword = document.infoedit.newpwd.value;
		if (LPassword == "" || LPassword.length<6 || LPassword.length>16) {
			alert("请确认登录密码!\n密码长度在6-16位之间");
			document.infoedit.newpwd.focus();
			return false;
		}
		if (document.infoedit.newpwd.value != document.infoedit.newpwd2.value) {
			alert("确认密码不一致!");
			document.infoedit.newpwd.focus();
			return false;
		}
		return true;
	}
</script>

</head>
<body>
<div id="right_font"><img src="../Public/images/main/main_14.gif" />
您现在所在的位置：<a href="__GROUP__/Index/main">首页</a> → <span class="bfont">修改用户信息</span></div>
<div id="admin_main">
<form name='infoedit' method='post' action='edit' onSubmit='return verify();'>
	<div id="admin_main_img"><span class="adminfont">修改用户信息</span></div>
		<div id="admin_main_text">&nbsp;&nbsp;&nbsp;&nbsp;用户名: {$_SESSION['admin']['admName']}</div>
		<div id="admin_main_text">&nbsp;&nbsp;&nbsp;&nbsp;原密码: <input type="password" name="oldpwd" />
		(<font color="#FF0000">*</font>)必填</div>
		<div id="admin_main_text">&nbsp;&nbsp;&nbsp;&nbsp;新密码: <input type="password" name="newpwd" />
		(<font color="#FF0000">*</font>)请输入6-16位密码</div>
		<div id="admin_main_text">确认新密码: <input type="password" name="newpwd2" />
		(<font color="#FF0000">*</font>)请再输入一次
	</div>
	<div id="admin_main_button">
		<input type="image" src="../Public/images/main/modify_submit.gif"
			onMouseOver="this.src='../Public/images/main/modify_submit_2.gif'" 
			onMouseOut="this.src='../Public/images/main/modify_submit.gif'" 
			alt="提交"/>
		<img src="../Public/images/main/modify_reset.gif" onClick="location.reload()" 
			onMouseOver="this.src='../Public/images/main/modify_reset_2.gif'" 
			onMouseOut="this.src='../Public/images/main/modify_reset.gif'" 
			alt="重置" />
		<img src="../Public/images/main/modify_back.gif" onClick="location.href='__GROUP__/Index/main'" 
			onMouseOver="this.src='../Public/images/main/modify_back_2.gif'" 
			onMouseOut="this.src='../Public/images/main/modify_back.gif'" style="cursor:pointer;" 
			alt="返回" />
	</div>
</form>
</div>
</body>
</html>